package com.chinaunicom.system.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.chinaunicom.system.dao.MenuMapper;
import com.chinaunicom.system.model.Menu;
import com.chinaunicom.system.service.IMenuService;
@Service
public class MenuServiceImpl implements IMenuService {
	
	@Resource
	private MenuMapper dao;

	@Override
	public int deleteByPrimaryKey(Integer nMenuid) throws Exception {
		// TODO Auto-generated method stub
		return dao.deleteByPrimaryKey(nMenuid);
	}

	@Override
	public int insert(Menu record) throws Exception {
		// TODO Auto-generated method stub
		return dao.insert(record);
	}

	@Override
	public int insertSelective(Menu record) throws Exception {
		// TODO Auto-generated method stub
		return dao.insertSelective(record);
	}

	@Override
	public Menu selectByPrimaryKey(Integer nMenuid) throws Exception {
		// TODO Auto-generated method stub
		return dao.selectByPrimaryKey(nMenuid);
	}

	@Override
	public int updateByPrimaryKeySelective(Menu record) throws Exception {
		// TODO Auto-generated method stub
		return dao.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Menu record) throws Exception {
		// TODO Auto-generated method stub
		return dao.updateByPrimaryKey(record);
	}

	@Override
	public List<Menu> query() throws Exception {
		// TODO Auto-generated method stub
		return dao.query();
	}

}
